package T4;
class Outer{
    int num = 10;
    public void method() {
        int num2 = 20;
        class Inner{  //局部内部类
            public void show() {
                System.out.println(num);
                System.out.println(num2);
            }
        }
        new Inner().show();
    }
}

public class InnerClassDemo4 {

    public static void main(String[] args) {
        Outer outer=new Outer();
        outer.method();
    }

}
